import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询业务系统全部
export const businessSystemList = data => {
    return $get('/system/businessSystem/list', data)
}

// 查询业务系统列表
export const businessSystemPage = data => {
    return $get('/system/businessSystem/page', data)
}

// 新增业务系统
export const businessSystemAdd = data => {
    return $post('/system/businessSystem/add', data)
}

// 查询业务系统详情
export const businessSystemDetail = id => {
    return $get('/system/businessSystem/detail/'+ id)
}

// 更新业务系统
export const businessSystemUpdate = data => {
    return $post('/system/businessSystem/update', data)
}

// 删除业务系统
export const businessSystemDelete = id => {
    return $post('/system/businessSystem/delete/'+ id)
}

// 导出业务系统
export const businessSystemExport = (data,fileName) => {
    return $download('/system/businessSystem/export',data, fileName)
}
